package com.kly.user.db.entity;
import com.fqgj.common.entity.BaseEntity;
import com.kly.user.dto.UserGpsDto;

import java.util.Date;
/**
* User: user
* Date: 2023-12-13
* Time: 10:13:14.718
* TableDesc:用户行为－－GPS信息
*/
public class UserBehaviorGpsEntity extends BaseEntity{
    /**
    *客户码
    */
    private String userCode;
    /**
    *国家或地址
    */
    private String area;
    /**
    *州
    */
    private String state;
    /**
    *州 简称
    */
    private String stateAbbr;
    /**
    *城市
    */
    private String city;
    /**
    *经度
    */
    private String lng;
    /**
    *纬度
    */
    private String lat;


    public  String getUserCode(){
        return this.userCode;
    }

    public  UserBehaviorGpsEntity setUserCode(String userCode){
        this.userCode = userCode;
        return this;
    }

    public  String getArea(){
        return this.area;
    }

    public  UserBehaviorGpsEntity setArea(String area){
        this.area = area;
        return this;
    }

    public  String getState(){
        return this.state;
    }

    public  UserBehaviorGpsEntity setState(String state){
        this.state = state;
        return this;
    }

    public  String getStateAbbr(){
        return this.stateAbbr;
    }

    public  UserBehaviorGpsEntity setStateAbbr(String stateAbbr){
        this.stateAbbr = stateAbbr;
        return this;
    }

    public  String getCity(){
        return this.city;
    }

    public  UserBehaviorGpsEntity setCity(String city){
        this.city = city;
        return this;
    }

    public  String getLng(){
        return this.lng;
    }

    public  UserBehaviorGpsEntity setLng(String lng){
        this.lng = lng;
        return this;
    }

    public  String getLat(){
        return this.lat;
    }

    public  UserBehaviorGpsEntity setLat(String lat){
        this.lat = lat;
        return this;
    }

    public static UserGpsDto toDto(UserBehaviorGpsEntity userBehaviorGpsEntity) {
        UserGpsDto userGpsDto = new UserGpsDto();
        if (userBehaviorGpsEntity != null) {
            userGpsDto.setLng(userBehaviorGpsEntity.getLng());
            userGpsDto.setLat(userBehaviorGpsEntity.getLat());
            userGpsDto.setState(userBehaviorGpsEntity.getStateAbbr());
            userGpsDto.setCity(userBehaviorGpsEntity.getCity());
        }
        return userGpsDto;
    }
}
